package com.dengke.hellospringmvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class InterceptorController {
	@RequestMapping("/test")
	public String test(Model model) {
		System.out.println("\n-----TestController.test------");
		System.out.println("*** You are in Controller ***");
		return "test";
	}
	
	@Deprecated
	@RequestMapping(value={"/admin/oldLogin"})
	public String oldLogin(Model model) {
		return "oldLogin";
	}
	
	@RequestMapping(value={"/admin/login"})
	public String login(Model model) {
		System.out.println("\n----- TestController.login----");
		System.out.println("**You are in Controller**");
		return "login";
	}
}
